<?php
/**
 * Model Traits SchoolTimetable
 * User: zng
 * Date: 2019/11/15
 * Time: 15:08
 */
namespace app\admin\traits\model\foods;

Trait Foods {

    public function category()
    {
        return $this->belongsToMany('FoodCategory', '\\app\\admin\\model\\foods\\FoodsCategory', 'fid', 'cid');
    }

}